<div class="form-group user_vip" {if $status neq 6 && $status neq 7}style="display:none;"{/if}>
	<div class="label">
		<label>选择套餐：</label>
	</div>
	<div class="field" style="padding-top:8px;"> 
		{foreach $nav_data as $k=>$nav}
		<input  type="checkbox" name="nav_id[{$k}]" id="dl{$k}" value="{$nav.nav_id}" {in name='$nav.nav_id' value='$userVip'}checked=''{/in} onclick="checkdd({$k},{$nav.nav_id})" />{$nav.nav_name}<br/>
		{if $nav.classNav}{foreach $nav.classNav as $ck=>$classNav}
		<input  type="radio" name="class_nav[{$k}][{$ck}]" value="{$classNav.id}" class="dds dds{$k}" id="dd{$k}{$ck}" {in name='$classNav.id' value='$classNavUser'}checked=""{/in}  onclick="checkdt({$k},{$ck},{$nav.nav_id})"/>------{$classNav.title}（班级）<br/>{/foreach}{/if}
		{/foreach}
	</div>
	<script type="text/javascript">
		function checkdd(id,nav_id){
			$('.input_class'+nav_id).val('no');
			if($('#dl'+id).prop('checked') == false){
				$('.dds').prop('checked',false);
			}
        }
		function checkdt(id,id1,nav_id){
			$('.input_class'+nav_id).val('no');
			var owncheck = $('.dds'+id+':checked').length;
			if($('#dd'+id+id1).prop('checked') == true){
				$('.input_class'+nav_id).val('yes');
				$('#dl'+id).prop('checked',true);
			}
			if(owncheck == 0){
				$('#dl'+id).prop('checked',false);
			}
		}
	</script>
</div>